using GEM.Application.Common;
using GEM.Application.Dto.Permission;

namespace GEM.Application.Repositories;

public interface IPermissionService
{
    Task<dynamic> CreatePermissionAsync(string permissionName);

    Task<dynamic> RemovePermissionAsync(Guid permissionId);

    /// <summary>
    /// 分页查询用户
    /// </summary>
    /// <param name="pageIndex">页码</param>
    /// <param name="pageSize">每页条数</param>
    /// <returns>分页数据</returns>
    Task<PagedResult<PermissionDto>> GetRolePagedAsync(int pageIndex, int pageSize);

    // 启用权限
    Task<dynamic> EnableRoleAsync(Guid permissionId);
    // 禁用权限
    Task<dynamic> DisableRoleAsync(Guid permissionId);

}